projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a6548
)
[IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.
author
Alex Williamson
<alex.williamson@hp.com>
Sun, 30 Dec 2007 19:53:54 +0000
(12:53 -0700)
committer
Alex Williamson
<alex.williamson@hp.com>
Sun, 30 Dec 2007 19:53:54 +0000
(12:53 -0700)
Pointed out by Samuel Thibault.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/dom0_ops.c
patch
|
blob
|
history
diff --git
a/xen/arch/ia64/xen/dom0_ops.c
b/xen/arch/ia64/xen/dom0_ops.c
index a37eef1e8387994b7de33ccaa1c318db3793399b..438796c0cfe6978d1da9900de2cfdd14a4b5351f 100644
(file)
--- a/
xen/arch/ia64/xen/dom0_ops.c
+++ b/
xen/arch/ia64/xen/dom0_ops.c
@@
-168,7
+168,8
@@
long arch_do_domctl(xen_domctl_t *op, XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
{
ret = shadow_mode_control(d, &op->u.shadow_op);
put_domain(d);
- copy_to_guest(u_domctl, op, 1);
+ if (copy_to_guest(u_domctl, op, 1))
+ ret = -EFAULT;
}
}
break;